package pile.customer.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * <p>
 * 常见问题
 * </p>
 *
 * @author 郭天义
 * @since 2024-06-05
 */
@Getter
@Setter
@TableName("sys_frequently_asked_questions")
@ApiModel(value = "FrequentlyAskedQuestions对象", description = "常见问题")
public class FrequentlyAskedQuestions implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("常见问题ID")
    @TableId(value = "frequently_asked_questions_id", type = IdType.AUTO)
    private Integer frequentlyAskedQuestionsId;

    @ApiModelProperty("问题")
    private String problem;

    @ApiModelProperty("答案")
    private String answer;

    @ApiModelProperty("有帮助数量")
    private Integer haveHelp;

    @ApiModelProperty("没帮助数量")
    private Integer noHelp;

    @ApiModelProperty("是否删除，1是0否")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("删除时间")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    private Date deleteTime;

    @ApiModelProperty("乐观锁")
    @Version
    private Integer version;

    //排序
    @ApiModelProperty("排序")
    private Integer sort;
}
